import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import Vant from 'vant'
import store from './store/index.js'
import 'vant/lib/index.css'
import 'vant/lib/index.less'
import Config from './common/config-1'
import './static/common_css/icon-font/iconfont.css'

import * as api from "./api/apiIndex.js"
import apiRequest from './api/index'
window.wx = {} // 防止echarts中的事件被污染
Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.$Config = Config
Vue.use(Vant)
App.mpType = 'app'
Vue.prototype.$api = api
Vue.prototype.$apiRequest = apiRequest
const app = new Vue({
    store,
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif
